﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SIA.Allarms;
using System.Data;

namespace SIA.DataBase
{
    public interface IDBArchive
    {        
        String SqlConString { get; set;}
        String StoricAllarmsTable { get; set;}        
        
        /// <summary>Salvataggio di un Allarme nella tabella su su DB</summary>
        /// <param name="allarme"></param>
        void savePastAllarm(IAllarm allarme);

        /// <summary>Send Select Query to Database</summary>
        /// <param name="query"></param>
        /// <returns></returns>
        DataTable Select(String SelectQuery);
    }
}
